package com.mind.invoice.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mind.invoice.mapper.AjRuleTypeMapper;
import com.mind.invoice.domain.AjRuleType;
import com.mind.invoice.service.IAjRuleTypeService;

/**
 * 规则分类Service业务层处理
 * 
 * @author xp
 * @date 2025-05-08
 */
@Service
public class AjRuleTypeServiceImpl implements IAjRuleTypeService 
{
    @Autowired
    private AjRuleTypeMapper ajRuleTypeMapper;

    /**
     * 查询规则分类
     * 
     * @param id 规则分类主键
     * @return 规则分类
     */
    @Override
    public AjRuleType selectAjRuleTypeById(Long id)
    {
        return ajRuleTypeMapper.selectAjRuleTypeById(id);
    }

    /**
     * 查询规则分类列表
     * 
     * @param ajRuleType 规则分类
     * @return 规则分类
     */
    @Override
    public List<AjRuleType> selectAjRuleTypeList(AjRuleType ajRuleType)
    {
        return ajRuleTypeMapper.selectAjRuleTypeList(ajRuleType);
    }

    /**
     * 新增规则分类
     * 
     * @param ajRuleType 规则分类
     * @return 结果
     */
    @Override
    public int insertAjRuleType(AjRuleType ajRuleType)
    {
        return ajRuleTypeMapper.insertAjRuleType(ajRuleType);
    }

    /**
     * 修改规则分类
     * 
     * @param ajRuleType 规则分类
     * @return 结果
     */
    @Override
    public int updateAjRuleType(AjRuleType ajRuleType)
    {
        return ajRuleTypeMapper.updateAjRuleType(ajRuleType);
    }

    /**
     * 批量删除规则分类
     * 
     * @param ids 需要删除的规则分类主键
     * @return 结果
     */
    @Override
    public int deleteAjRuleTypeByIds(Long[] ids)
    {
        return ajRuleTypeMapper.deleteAjRuleTypeByIds(ids);
    }

    /**
     * 删除规则分类信息
     * 
     * @param id 规则分类主键
     * @return 结果
     */
    @Override
    public int deleteAjRuleTypeById(Long id)
    {
        return ajRuleTypeMapper.deleteAjRuleTypeById(id);
    }
}
